const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    proxy: {
      "/api": {
        target: "https://v.api.aa1.cn", //目标服务器地址
        changeOrigin: true,
        ws: true,
        pathRewrite: {

        }
      },

      "/devtest": {
        target: "https://www.nmc.cn",
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          "^/devtest": ""
        }
      }

    }
  }
})
